#include<iostream>
using namespace std;
int main ()
{
    int n1,aux;
    cin>>n1;
    aux=n1;
    while(n1%2==0)
    {
        while(aux>1)
        {
            aux=aux/2;
            cout<<aux<<endl;
        }
    }
    return 1;
}
